package cn.bgs.service.Impl;

import cn.bgs.mapper.PlotMapper;
import cn.bgs.pojo.CommunityVo;
import cn.bgs.service.PlotService;
import cn.bgs.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
@Service

public class PlotServiceImpl implements PlotService {
    @Autowired
    private PlotMapper plotMapper;
    @Override
    public List<CommunityVo> findplot() {
        List<CommunityVo> communityVo = plotMapper.findplot();
        return communityVo;
    }

    @Override
    public void delplot(Integer id) {
        plotMapper.delplot(id);
    }

    @Override
    public void addcommunity(CommunityVo forms) {
        plotMapper.addcommunity(forms);
    }

    @Override
    public void updatecommunity(CommunityVo forms) {
        plotMapper.updatecommunity(forms);
    }

}